-
Notifications
You must be signed in to change notification settings - Fork 179
Testing/Build Workflows #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing/Build Workflows #266
Conversation
TODO: move test dependencies hardcoded in test.yml to extras-require as discussed here |
* Add build workflow via docker * rename docker-compose to docker compose * add twine check and upload to PyPi * add workflow_dispatch * install twine before twine check
1. To ensure test compatibility between NumPy v1 and v2 environments, we've adjusted the comparison tolerance to 1e-4. This accommodates slight variations (around 1e-4) in floating-point outcomes between the two NumPy versions. Additionally, we've modified the expected proto float to align with NumPy v2 results. 2. For mutual_information, NumPy v2 is able to handle values > 2**53 if the min and max of the examples are the same. However, since we need to be compatible with NumPy v1 and v2, for related unit tests, we check for the NumPy version before running the associated unit tests. PiperOrigin-RevId: 681598675
9cb79b3
to
969cad0
Compare
.github/reusable-build/action.yml
Outdated
name: data-validation-wheel-py${{ matrix.python-version }} | ||
path: dist/*.whl | ||
|
||
- name: Install built wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be installing the wheel in the runner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updated the name. Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things:
- Change the
reusable-build
action to not sayInstall built wheel
, since we're not doing that - Update the places where
@pytest.mark.xfail(run=False, reason="PR 260 This test fails and needs to be fixed.")
is to either remove the mention of the PR, or point to the correct PR (266) - Can you make an issue to remove all the calls to
absltest.main
since we're no longer using absl to run tests?
1 and 2 have been addressed, and I opened #271 to address 3 |
Merging; with the current dependency on zetasql, this build will time out. We'll be introducing a PR to remove the zetasql dependency later on, at which point these workflows will become relevant. |
Copybara overwrote these previously merged commits. This PR adds them back in. Note that currently the build fails due to some dependency versions only being available via nightly builds